package com.java.androidmarket.dao;

import com.java.androidmarket.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * description:
 * author:张腾
 * date:2021-05-21
 */

@Mapper
public interface StockDao {

    Stock getStock(int goodsId);

    void setLock(@Param("goodsId") int goodsId, @Param("lock") int lockNum);

    void reLock(@Param("goodsId") int goodsId, @Param("lock") int lockNum);

    void lockTosSale(Stock stock);
}
